home *** CD-ROM | disk | FTP | other *** search
Text File | 1996-09-26 | 3.8 KB | 84 lines | [TEXT/Rich] |
- ********************************************************************
- * *
- * P4/Mac *
- * *
- * Public Domain (plain) Pascal for the Macintosh *
- * *
- * original program by by Steven Pemberton and Martin Daniels *
- * Mac adaption by Ingemar Ragnemalm 1994-1996 *
- * *
- ********************************************************************
-
- This is a Mac port of P4, public domain Pascal compiler and interpreter.
- It was compiled with Think Pascal.
-
- WHO NEEDS IT?
- =============
-
- Not a Mac application programmer, that's for sure. No, P4/Mac could be of interest
- for people in beginner programmer courses. Such courses (sadly) often teach "Vanilla
- Pascal", the nearly useless minimalist Pascal that P4/Mac implements. (It doesn't
- even have strings!) For those of you who still do, P4/Mac is a Public Domain
- alternative to buying a commercial compiler. That is, if you don't need all the
- extensions and libraries anyway.
-
- However, once you want to make real Mac applications, I wholeheartedly recommend
- Think Pascal. Powerful language, fast resulting code, great debugger. Metrowerks
- CodeWarrior can also be an option, once they get their debugger a bit more powerful.
- (Yes, you might move to C or C++ later, but Pascal is the easiest language to
- start with. Too. Actually, I recommend Pascal and Object Pascal for any kind of
- serious programming. Easy to read, easy to support.)
-
- FEATURES:
- =========
-
- This is a free port of a Public Domain Pascal system. You get what you pay for.
- Even though it now runs on a Mac, note that the result:
-
- • is an INTERPRETER! Don't expect high performance. If you want code that executes
- fast, use Think Pascal or CodeWarrior Pascal instead!
-
- • has NO interface to the Mac toolbox, not even rudimentary drawing calls, so
- all you get is Vanilla Pascal, text-based. NOTHING MORE (until someone dives
- into the code and adds it, of course). Yes, sure it would be nice with some
- turtle graphics, and libraries, and some way to call toolbox routines…
-
- HOW TO USE IT:
- ==============
-
- 1) Write your Vanilla Pascal in a text editor, either the built-in one or a
- better one. (TeachText, BBedit, whatever that produces plain text files.)
- 2) Select "Run" from the Pascal menu. P4/Mac will prompt for a pcode file to
- save the intermediary code. Then it will run it.
-
- If your program locks up, try command-period to abort it. If that doesn't work,
- command-alt-escape yourself out.
-
- It is highly recommended that you use the name for the pcode file that P4/Mac
- suggests. If you do, P4/Mac can find the pcode automatically when you have the
- Pascal file open and select "Run pcode".
-
- WHAT HAS BEEN IMPROVED?
- =======================
-
- P4/Mac 2.0 is a lot better than version 1.0. The following things have happened:
-
- • Compiler and interpreter integrated to one program.
- • Editor included.
- • Mac interface, multi-window and menus.
- • Console window instead of Think's Text window. This is faster and allows some
- new features.
-
- WHAT COULD BE IMPROVED?
- =======================
-
- Full Think Pascal sources are supplied. These sources are fairly close to the
- original P4 sources, though a lot more modified than they were in 1.0. Feel
- free to change them for whatever need. Some improvements I have in mind include:
- • Breaking down the file block.p to smaller parts, so we can turn debug on for it.
- • Adding features, making it able to do something more than just plain text.
- • Compiling is really slow. Can it be helped?
-
-
- See "Original source & doc" for more info on the original P4.
-